package com.work.keep.datas;

import java.util.List;

/**
 * Created by dllo on 16/1/19.
 */
public class PeopleData {
    /**
     * ok : true
     * data : {"_id":"56999b2d9951948b57b2c53b","username":"AndreaWalker","avatar":"http://static1.gotokeep.com/avatar/2016/01/16/09/0ab4bd883dc851179ac3e7a18e78657712e509b6.jpg","bio":"","last_login":"2016-01-19T01:35:59.711Z","gender":"F","combo":2,"last_exercise_at":"2016-01-18T12:12:53.000Z","totalDuration":76,"totalFinish":5,"totalCalorie":307,"activePlans":[],"activeWorkouts":[],"workouts":[],"plans":[],"citycode":"HW033","birthday":"1993-07-01T00:00:00.000Z","state":"normal","liked":788,"totalHotEntry":3,"hasFollowed":false,"hasBlack":false,"hasMutualFollow":false,"followers":701,"followings":2,"statistics":{"_id":"56999c51032d7f5d013787c9","totalDuration":76,"totalCalorie":307,"totalTraining":5,"lastTraining":"2016-01-18T12:12:53.000Z","maxCombo":2,"totalTrainingDay":2,"currentCombo":2,"totalEntries":5,"achievements":4,"liked":788,"totalHotEntry":3}}
     * errorCode : 0
     * now : 2016-01-19T04:49:48.922Z
     * version : 1.0.0
     */

    private boolean ok;
    /**
     * _id : 56999b2d9951948b57b2c53b
     * username : AndreaWalker
     * avatar : http://static1.gotokeep.com/avatar/2016/01/16/09/0ab4bd883dc851179ac3e7a18e78657712e509b6.jpg
     * bio :
     * last_login : 2016-01-19T01:35:59.711Z
     * gender : F
     * combo : 2
     * last_exercise_at : 2016-01-18T12:12:53.000Z
     * totalDuration : 76
     * totalFinish : 5
     * totalCalorie : 307
     * activePlans : []
     * activeWorkouts : []
     * workouts : []
     * plans : []
     * citycode : HW033
     * birthday : 1993-07-01T00:00:00.000Z
     * state : normal
     * liked : 788
     * totalHotEntry : 3
     * hasFollowed : false
     * hasBlack : false
     * hasMutualFollow : false
     * followers : 701
     * followings : 2
     * statistics : {"_id":"56999c51032d7f5d013787c9","totalDuration":76,"totalCalorie":307,"totalTraining":5,"lastTraining":"2016-01-18T12:12:53.000Z","maxCombo":2,"totalTrainingDay":2,"currentCombo":2,"totalEntries":5,"achievements":4,"liked":788,"totalHotEntry":3}
     */

    private DataEntity data;
    private int errorCode;
    private String now;
    private String version;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isOk() {
        return ok;
    }

    public DataEntity getData() {
        return data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getNow() {
        return now;
    }

    public String getVersion() {
        return version;
    }

    public  class DataEntity {
        private String _id;
        private String username;
        private String avatar;
        private String bio;
        private String last_login;
        private String gender;
        private int combo;
        private String last_exercise_at;
        private int totalDuration;
        private int totalFinish;
        private int totalCalorie;
        private String citycode;
        private String birthday;
        private String state;
        private int liked;
        private int totalHotEntry;
        private boolean hasFollowed;
        private boolean hasBlack;
        private boolean hasMutualFollow;
        private int followers;
        private int followings;
        /**
         * _id : 56999c51032d7f5d013787c9
         * totalDuration : 76
         * totalCalorie : 307
         * totalTraining : 5
         * lastTraining : 2016-01-18T12:12:53.000Z
         * maxCombo : 2
         * totalTrainingDay : 2
         * currentCombo : 2
         * totalEntries : 5
         * achievements : 4
         * liked : 788
         * totalHotEntry : 3
         */

        private StatisticsEntity statistics;
        private List<?> activePlans;
        private List<?> activeWorkouts;
        private List<?> workouts;
        private List<?> plans;

        public void set_id(String _id) {
            this._id = _id;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setBio(String bio) {
            this.bio = bio;
        }

        public void setLast_login(String last_login) {
            this.last_login = last_login;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public void setCombo(int combo) {
            this.combo = combo;
        }

        public void setLast_exercise_at(String last_exercise_at) {
            this.last_exercise_at = last_exercise_at;
        }

        public void setTotalDuration(int totalDuration) {
            this.totalDuration = totalDuration;
        }

        public void setTotalFinish(int totalFinish) {
            this.totalFinish = totalFinish;
        }

        public void setTotalCalorie(int totalCalorie) {
            this.totalCalorie = totalCalorie;
        }

        public void setCitycode(String citycode) {
            this.citycode = citycode;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public void setState(String state) {
            this.state = state;
        }

        public void setLiked(int liked) {
            this.liked = liked;
        }

        public void setTotalHotEntry(int totalHotEntry) {
            this.totalHotEntry = totalHotEntry;
        }

        public void setHasFollowed(boolean hasFollowed) {
            this.hasFollowed = hasFollowed;
        }

        public void setHasBlack(boolean hasBlack) {
            this.hasBlack = hasBlack;
        }

        public void setHasMutualFollow(boolean hasMutualFollow) {
            this.hasMutualFollow = hasMutualFollow;
        }

        public void setFollowers(int followers) {
            this.followers = followers;
        }

        public void setFollowings(int followings) {
            this.followings = followings;
        }

        public void setStatistics(StatisticsEntity statistics) {
            this.statistics = statistics;
        }

        public void setActivePlans(List<?> activePlans) {
            this.activePlans = activePlans;
        }

        public void setActiveWorkouts(List<?> activeWorkouts) {
            this.activeWorkouts = activeWorkouts;
        }

        public void setWorkouts(List<?> workouts) {
            this.workouts = workouts;
        }

        public void setPlans(List<?> plans) {
            this.plans = plans;
        }

        public String get_id() {
            return _id;
        }

        public String getUsername() {
            return username;
        }

        public String getAvatar() {
            return avatar;
        }

        public String getBio() {
            return bio;
        }

        public String getLast_login() {
            return last_login;
        }

        public String getGender() {
            return gender;
        }

        public int getCombo() {
            return combo;
        }

        public String getLast_exercise_at() {
            return last_exercise_at;
        }

        public int getTotalDuration() {
            return totalDuration;
        }

        public int getTotalFinish() {
            return totalFinish;
        }

        public int getTotalCalorie() {
            return totalCalorie;
        }

        public String getCitycode() {
            return citycode;
        }

        public String getBirthday() {
            return birthday;
        }

        public String getState() {
            return state;
        }

        public int getLiked() {
            return liked;
        }

        public int getTotalHotEntry() {
            return totalHotEntry;
        }

        public boolean isHasFollowed() {
            return hasFollowed;
        }

        public boolean isHasBlack() {
            return hasBlack;
        }

        public boolean isHasMutualFollow() {
            return hasMutualFollow;
        }

        public int getFollowers() {
            return followers;
        }

        public int getFollowings() {
            return followings;
        }

        public StatisticsEntity getStatistics() {
            return statistics;
        }

        public List<?> getActivePlans() {
            return activePlans;
        }

        public List<?> getActiveWorkouts() {
            return activeWorkouts;
        }

        public List<?> getWorkouts() {
            return workouts;
        }

        public List<?> getPlans() {
            return plans;
        }

        public  class StatisticsEntity {
            private String _id;
            private int totalDuration;
            private int totalCalorie;
            private int totalTraining;
            private String lastTraining;
            private int maxCombo;
            private int totalTrainingDay;
            private int currentCombo;
            private int totalEntries;
            private int achievements;
            private int liked;
            private int totalHotEntry;

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setTotalDuration(int totalDuration) {
                this.totalDuration = totalDuration;
            }

            public void setTotalCalorie(int totalCalorie) {
                this.totalCalorie = totalCalorie;
            }

            public void setTotalTraining(int totalTraining) {
                this.totalTraining = totalTraining;
            }

            public void setLastTraining(String lastTraining) {
                this.lastTraining = lastTraining;
            }

            public void setMaxCombo(int maxCombo) {
                this.maxCombo = maxCombo;
            }

            public void setTotalTrainingDay(int totalTrainingDay) {
                this.totalTrainingDay = totalTrainingDay;
            }

            public void setCurrentCombo(int currentCombo) {
                this.currentCombo = currentCombo;
            }

            public void setTotalEntries(int totalEntries) {
                this.totalEntries = totalEntries;
            }

            public void setAchievements(int achievements) {
                this.achievements = achievements;
            }

            public void setLiked(int liked) {
                this.liked = liked;
            }

            public void setTotalHotEntry(int totalHotEntry) {
                this.totalHotEntry = totalHotEntry;
            }

            public String get_id() {
                return _id;
            }

            public int getTotalDuration() {
                return totalDuration;
            }

            public int getTotalCalorie() {
                return totalCalorie;
            }

            public int getTotalTraining() {
                return totalTraining;
            }

            public String getLastTraining() {
                return lastTraining;
            }

            public int getMaxCombo() {
                return maxCombo;
            }

            public int getTotalTrainingDay() {
                return totalTrainingDay;
            }

            public int getCurrentCombo() {
                return currentCombo;
            }

            public int getTotalEntries() {
                return totalEntries;
            }

            public int getAchievements() {
                return achievements;
            }

            public int getLiked() {
                return liked;
            }

            public int getTotalHotEntry() {
                return totalHotEntry;
            }
        }
    }
}
